package com.ysd.lis.controller.bac;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.dto.bac.BacExperimentDto;
import com.ysd.lis.entity.bac.BacExperiment;
import com.ysd.lis.entity.bac.BacUnionColoCount;
import com.ysd.lis.entity.sta.StaColonyCount;
import com.ysd.lis.service.bac.BacExperimentService;
import com.ysd.lis.service.bac.BacUnionColoCountService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author cfz
 * @since 2024-04-07
 */
@RestController
@RequestMapping("/api/bac/bac-experiment")
public class BacExperimentController extends BaseController {
    @Autowired
    BacExperimentService bacExperimentService;

    @ApiOperation("查询")
    @GetMapping("/findBacExperimentList")
    public Result findBacExperimentList(BacExperiment bacExperiment) {
        return bacExperimentService.findBacExperimentList(bacExperiment);
    }

    @ApiOperation("增加")
    @PostMapping("/addBacExperiment")
    public Result addBacExperiment(@RequestBody BacExperiment bacExperiment) {
        return bacExperimentService.addBacExperiment(bacExperiment);
    }

    @ApiOperation("删除")
    @PostMapping("/deleteBacExperiment")
    public Result deleteBacExperiment(@RequestBody BacExperiment bacExperiment) {
        return bacExperimentService.deleteBacExperiment(bacExperiment);
    }

    @ApiOperation("修改")
    @PostMapping("/updateBacExperiment")
    public Result updateBacExperiment(@RequestBody BacExperiment bacExperiment) {
        return bacExperimentService.updateBacExperiment(bacExperiment);
    }

    @ApiOperation("删除")
    @PostMapping("/deleteBatchBacExperiment")
    public Result deleteBatchBacExperiment(@RequestBody BacExperimentDto experimentDto) {
        return bacExperimentService.deleteBatchBacExperiment(experimentDto);
    }


}
